package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <desc>
 *      App用户授权关系实体类。
 * </desc>
 * @createDate 2017/09/18
 */
@ItlTables("app_auth_relations")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class AppAuthRelationsPO extends BasePO implements Serializable{
    @ItlField("user_id")
    private String userId;          //用户id
    @ItlField("parent_user_id")
    private String parentUserId;    //父级用户id
    @ItlField("project_id")
    private String projectId;       //项目编号
    @ItlField("user_remarks")
    private String userRemarks;     //用户备注
    @ItlField("build_id")
    private String buildId;         //楼栋id
    @ItlField("unit_id")
    private String unitId;          //单元id
    @ItlField("room_id")
    private String roomId;          //房间id
    @ItlField("room_num")
    private String roomNum;         //房间编号
    @ItlField("type")
    private String type;            //授权类型：0001门禁 0010电梯 0011门禁与电梯 0100云对讲 0111门禁与电梯与云对讲

    /**
     * <desc>
     *     APP端_用户申请房屋认证
     * </desc>
     * @param userId
     * @param parentUserId
     * @param projectId
     * @param buildId
     * @param unitId
     * @param roomId
     * @param roomNum
     * @param status
     * @param createTime
     */
    public AppAuthRelationsPO(String userId,String parentUserId,String projectId,
         String buildId,String unitId,String roomId,String roomNum,Integer status,Date createTime){
        this.userId = userId;
        this.parentUserId = parentUserId;
        this.projectId = projectId;
        this.buildId = buildId;
        this.unitId = unitId;
        this.roomId = roomId;
        this.roomNum = roomNum;
        super.setStatus(status);
        super.setCreateTime(createTime);
    }




}
